package com.tx.zlm_replay.config;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author tx
 * @version 1.0
 * @date 2024/3/18 11:54
 * @description: springdoc 配置
 */
@Configuration
public class SpringDocConfig {
    @Bean
    public OpenAPI springShopOpenAPI() {
        return new OpenAPI()
                .info(new Info().title("录像回放API")
                        .description("zlm录像文件相关")
                        .version("v1.0.0")
                        .license(new License().name("MIT").url("https://gitee.com/tian_xiong/zlm_replay.git")))
                .externalDocs(new ExternalDocumentation()
                        .description("wikis")
                        .url("https://gitee.com/tian_xiong/zlm_replay/wikis"));
    }
}
